package com.fqxiny.lease.common.exception;

import com.fqxiny.lease.common.result.ResultCodeEnum;

/**
 * @author : 戚欣扬
 * @code :
 */
public class UpException extends RuntimeException{
    private Integer code;

    public Integer getCode() {
        return code;
    }

    public UpException(ResultCodeEnum resultCodeEnum) {
        super(resultCodeEnum.getMessage());
        this.code = resultCodeEnum.getCode();
    }

    public UpException(Integer code, String message) {
        super(message);
        this.code = code;
    }
}


